package com.hmall.api.client;

import com.hmall.api.config.DefaultFeignConfig;
import com.hmall.common.domain.vo.CartVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;
import java.util.Set;

@FeignClient(value = "cart-service",configuration = DefaultFeignConfig.class)
public interface CartService {
    @DeleteMapping("/carts")
     void removeByItemIds(Set<Long> itemIds);
    @GetMapping("/carts")
     List<CartVO> queryMyCarts();
}
